#ifndef IOTESTWIDGET_H
#define IOTESTWIDGET_H

#include <QObject>
#include <QWidget>
#include <QPushButton>
#include <QLabel>

class IOTestWidget : public QWidget
{
    Q_OBJECT
public:
    explicit IOTestWidget(QWidget *parent = 0);
    ~IOTestWidget();

signals:

private:
    QTimer *p_Timer;
    QPushButton *p_IOButton[4];
    QLabel *p_IOLabel[4];
    void gpioinit(void);
    void gpiofree(void);
    void writeiodev(const char *context, const char *devfile);
    int readiodev(const char *devfile);

private slots:
    void dealiobut1();
    void dealiobut2();
    void dealiobut3();
    void dealiobut4();
    void checkiostate();
};

#endif // IOTESTWIDGET_H
